package com.ocom.accesservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.access.EntityMjGroupInfo;
import com.ocom.common.vo.DelAreaVo;
import com.ocom.common.vo.GroupListVo;
import com.ocom.common.vo.access.GroupVo;

import java.util.List;

public interface GroupInfoService extends IService<EntityMjGroupInfo> {


    /**
     * 移除区域
     * */
    public void RemoveArea(DelAreaVo delAreaVo, Long companyId);


    /**
     * 初始化单位门禁参数
     * */
    public void InitCompanyPara(EntityMjGroupInfo entityMjGroupInfo, Long companyId);


    public List<GroupListVo> getGroupList(Long companyId,Long areaNo);

    public List<EntityMjGroupInfo> getGroupList(Long companyId);

    public EntityMjGroupInfo getGroupInfoById(Long companyId,Long roleI,Long areaNo);

    EntityMjGroupInfo getAccessGroup(Long companyId, GroupVo groupVo);

    Integer addGroup(Long companyId, GroupVo groupVo);

    EntityMjGroupInfo selectName(Long companyId, GroupVo groupVo);

    Boolean updateGroup(Long companyId, GroupVo groupVo);
}
